﻿<ul>
   
    @{
        IEnumerable<NH_Entity.QHY_Module> categories;
        using (var session = NH_Factory.NHibernateHelper.sessionFactory.OpenSession())
        {
            categories = session.QueryOver<NH_Entity.QHY_Module>().List().Where(p => p.IsMenu == true).OrderBy(p => p.ModuleOrder);
        }
          <li>@Html.ActionLink("桌面", "Index", "Default", new { area = "Admin" }, null)</li>
        foreach (var list in categories)
        {
            
        <li>@Html.ActionLink(list.ModuleName, "Index", Convert.ToString(list.ModuleTag), new { area = "Admin" }, null)</li>
       
        }
    
    }
</ul>
